package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;

//目录
public class SystemDictionary {
    private Long id;
    //编码
    private String sn;
    //标题
    private String title;
    //简介
    private String intro;

    //获取页面中的data-json属性
    public String getJson(){
        HashMap<String,Object> map = new HashMap();
        map.put("id",id);
        map.put("title",title);
        map.put("sn",sn);
        map.put("intro",intro);
        return JSON.toJSONString(map);
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

}